var Fight;
!(function (a) {
  var t = (function () {
    function a() {}
    return (
      (a.onLoad = function (t, n) {
        (a.isLoading[n] = !1),
          a.isCache[n] ||
            (Laya.Animation.createFrames(this.magicUrls(n), "talent" + n),
            (a.isCache[n] = !0),
            t.startShuang());
      }),
      (a.load = function (t, n) {
        if (a.isLoading[n] || a.isCache[n]) return !0;
        a.isLoading[n] = !0;
        var i = a.path + n + ".atlas";
        return (
          Laya.loader.load(
            i,
            Laya.Handler.create(this, this.onLoad, [t, n]),
            null,
            Laya.Loader.ATLAS
          ),
          !1
        );
      }),
      (a.magicUrls = function (a) {
        for (
          var t = a.split("-"), n = 1 * parseInt(t[1]), i = [], r = 1;
          r <= n;
          r++
        )
          i.push("fight/talent/" + a + "/" + r + ".png");
        return i;
      }),
      (a.path = "res/atlas/fight/talent/"),
      (a.isCache = {}),
      (a.isLoading = {}),
      a
    );
  })();
  a.Talent = t;
})(Fight || (Fight = {}));
